import { locations } from "../../../../gpu/locations";
export const Line_def = /*wgsl*/ `
#if ~{def.map_uvPixel}
@group(${locations.map_uvPixel[0]}) @binding(${locations.map_uvPixel[1]})  var<uniform> map_uvPixel:f32 ;
#endif
#if ~{def.lineWidth}
@group(${locations.lineWidth[0]}) @binding(${locations.lineWidth[1]})  var<uniform> lineWidth:f32 ;
#endif
fn pixelToWorld(pixel:f32)->f32{
  return (pixel/camera.viewport.y)*camera.dist*2.309401076758503;
}
`

